import hdc_utils
import time
import os


def main():
    devices = hdc_utils.command_devices()
    for device in devices:
        hdc_utils.command_shellcmd(device, "rm -rf /data/log/hilog/*")
        hdc_utils.command_shellcmd(device, "rm -rf /data/log/faultlog/*")
        hdc_utils.command_shellcmd(device, "/data/bluetooth/log/*")

    hdc_utils.timestamp("clean log finished")


if __name__ == "__main__":
    main()
